using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Commerce.Common;

public partial class Receipt : System.Web.UI.Page
{
    protected Commerce.Common.Order order;
    protected void Page_Load(object sender, EventArgs e)
    {
        string orderGuid = Utility.GetParameter("t");
        if (orderGuid != string.Empty) {
            order = OrderController.GetOrder(orderGuid);
            lblReceipt.Text = order.ToHtml();
        } else {
            lblReceipt.Text = "<h4>Invalid Order</h4>";
       
        }
    }

}
